﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CookeryBook
{
    class Recette
    {
        public int id { get; set; }
        public String nom { get; set; }
        public Uri image { get; set; }
        public String description { get; set; }
        public int tempsPreparation { get; set; }
        public List<Recette_ingredient> lstIngredient { get; set; }
        public TypePlat typePlat { get; set; }

        public Recette(String nom, Uri image, String description, int tempsPreparation, List<Recette_ingredient> lstIngredient)
        {
            this.nom = nom;
            this.image = image;
            this.description = description;
            this.tempsPreparation = tempsPreparation;
            this.lstIngredient = lstIngredient;
        }


        private void addIngredient(Recette_ingredient ingredient)
        {
            lstIngredient.Add(ingredient);
        }
    }

    enum TypePlat
    {
        Entrée, Plat, Dessert
    }
}
